#!/bin/bash
if(test -L $0) then auxlink=`ls -l $0 | sed 's/^[^>]*-> //g'`; M_HOME=`dirname $auxlink`/; else M_HOME=`dirname $0`/; fi; cd $M_HOME
. ../before || exit 1
sb2 ./configure --prefix=/usr --exec-prefix=/ --sysconfdir=/etc --disable-nls
sb2 make
sb2 make DESTDIR=$ROOTFS/ install
ln -s $ROOTFS/bin/bash $ROOTFS/bin/sh
cat >$ROOTFS/root/.bash_profile <<EOF
export PS1='\[\e[36;1m\]\u@\[\e[32;1m\]\w# \[\e[0m\]'
alias ls='ls --color'
EOF
touch $ROOTFS/.`basename $0`
